<%@ Page language="c#" Codebehind="BuyExistingTrain.aspx.cs" AutoEventWireup="True" Inherits="WebApplication.BuyExistingTrain" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title id="Title" method="post" runat="server">BuyExistingTrain</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout" bgColor="#00ffff">
		<form id="BuyExistingTrain" method="post" runat="server">
			<asp:Label id="Label1" style="Z-INDEX: 100; LEFT: 190px; POSITION: absolute; TOP: 14px" runat="server" Font-Bold="True" Font-Size="Large">Buy Existing Train</asp:Label>
			<asp:checkbox id="PriorityCheckBox" style="Z-INDEX: 111; LEFT: 479px; POSITION: absolute; TOP: 14px" runat="server" ForeColor="White" Text="Priority" TextAlign="Left" Enabled="False"></asp:checkbox>
			<asp:Label id="CompanyMoney" style="Z-INDEX: 104; LEFT: 50px; POSITION: absolute; TOP: 50px" runat="server" Font-Size="Medium" Width="500px" Height="30px">Label</asp:Label>
			<asp:label id="Status" style="Z-INDEX: 100; LEFT: 50px; POSITION: absolute; TOP: 90px" runat="server" Width="500px" Height="30px"></asp:label>
			<asp:label id="ErrorMsg" style="Z-INDEX: 100; LEFT: 50px; POSITION: absolute; TOP: 130px" runat="server" Font-Size="Medium" Font-Bold="True" ForeColor="Red" Height="30px" Width="500px"></asp:label>
			<asp:label id="Label2" 
                style="Z-INDEX: 107; LEFT: 50px; POSITION: absolute; TOP: 565px" 
                runat="server">Price:</asp:label>
			<asp:TextBox id="Price" 
                style="Z-INDEX: 108; LEFT: 97px; POSITION: absolute; TOP: 560px" runat="server" 
                Width="40px"></asp:TextBox>
			<asp:button id="Accept" 
                style="Z-INDEX: 109; LEFT: 159px; POSITION: absolute; TOP: 557px" 
                runat="server" Width="59px" Text="Buy" onclick="Accept_Click"></asp:button>
			<asp:button id="Reject" 
                style="Z-INDEX: 106; LEFT: 231px; POSITION: absolute; TOP: 558px" 
                runat="server" Text="Cancel" onclick="Reject_Click"></asp:button>
			<asp:linkbutton id="Back" 
                style="Z-INDEX: 101; LEFT: 284px; POSITION: absolute; TOP: 598px" 
                runat="server" onclick="Back_Click">Back</asp:linkbutton>
			<asp:Table id="TrainTable" 
                style="Z-INDEX: 105; LEFT: 50px; POSITION: absolute; TOP: 169px;height: 374px;" 
                runat="server" Width="500px" ForeColor="Blue" GridLines="Both" 
                BorderColor="Blue" BackColor="Aqua">
				<asp:TableRow>
					<asp:TableCell Text="Player"></asp:TableCell>
					<asp:TableCell Text="Company"></asp:TableCell>
					<asp:TableCell Text="Cash"></asp:TableCell>
					<asp:TableCell runat="server">Loans</asp:TableCell>
					<asp:TableCell Text="Train(s)"></asp:TableCell>
				</asp:TableRow>
			</asp:Table>
		</form>
		<script language="javascript">
			function GetPriority ()
			{
				return document.BuyExistingTrain.PriorityCheckBox.checked;
			}
		</script>
		<script language="javascript">
			var bPriority = GetPriority()

			if (!bPriority)
				document.write ("<meta id=\"refresh\" http-equiv=\"refresh\" content=\"2\">");
		</script>
	</body>
</HTML>
